package api.finance;

import com.alibaba.fastjson.JSONArray;
import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

//确认应收账款流程api
public class AdminCheckApi {
    private static final String hogen_login= Url.Base_Url+"consumer/receivableRecord/add";
    private static final String admin_check=Url.Base_Url+"consumer/receivableRecord/submitExamine";
    public static ResponseData hogen_affirm(String collectionNumber, JSONArray receivableRecordLists) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("collectionNumber",collectionNumber);
        data.put("receivableRecordLists",receivableRecordLists);
        return HttpClientUtils.post_json(hogen_login,data);
    }
    public static ResponseData admin_check(String collectionNumbers) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("collectionNumbers",collectionNumbers);
        return HttpClientUtils.post_json(admin_check,data);
    }
}
